package com.dure.hotmemory.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by leix on 30/05/2017.
 */
@Entity
public class Code extends Bean {
    @Id(autoincrement = true)
    private Long id;

    public String number;
    public String name;
    public String image;
    public int position = -1;// 在同一编码中所处位置
    public int index;// 在所有数字中所处的位置
    public String type;
    public boolean isCreated;

    @Transient
    public boolean changeable;
    @Transient
    public int showType;
    @Transient
    public int showTimes;
    @Generated(hash = 1347522287)
    public Code(Long id, String number, String name, String image, int position,
            int index, String type, boolean isCreated) {
        this.id = id;
        this.number = number;
        this.name = name;
        this.image = image;
        this.position = position;
        this.index = index;
        this.type = type;
        this.isCreated = isCreated;
    }
    @Generated(hash = 364261929)
    public Code() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getNumber() {
        return this.number;
    }
    public void setNumber(String number) {
        this.number = number;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getImage() {
        return this.image;
    }
    public void setImage(String image) {
        this.image = image;
    }
    public int getPosition() {
        return this.position;
    }
    public void setPosition(int position) {
        this.position = position;
    }
    public String getType() {
        return this.type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public boolean getIsCreated() {
        return this.isCreated;
    }
    public void setIsCreated(boolean isCreated) {
        this.isCreated = isCreated;
    }
    public int getIndex() {
        return this.index;
    }
    public void setIndex(int index) {
        this.index = index;
    }
}
